const appId = 'wx7cd2a45df18747f6';
const secret = 'e5d857d3d7fd785b2e63d446324f824d';
class WChat {
    async Wx(code) {
        const url =
            'https://api.weixin.qq.com/sns/jscode2session?appid=' +
            appId +
            '&secret=' +
            secret +
            '&js_code=' +
            code +
            '&grant_type=authorization_code';
        return url;
    }
}

module.exports = new WChat();
